<template>
	<view class="content">
		<u-tabbar v-model="current" :list="list" :mid-button="false"></u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						iconPath: "home",
						selectedIconPath: "home-fill",
						text: '首页',
						isDot: false,
						customIcon: false,
						pagePath: "/pages/article/article",
					},
					{
						iconPath: "chat",
						selectedIconPath: "chat-fill",
						text: '问答',
						customIcon: false,
						pagePath: "/pages/index/index",
					},
					{
						iconPath: "grid",
						selectedIconPath: "grid-fill",
						text: '体系',
						customIcon: false,
						pagePath: "/pages/index/index",
					},
					{ 
						iconPath: "account",
						selectedIconPath: "account-fill",
						text: '我的',
						isDot: false,
						customIcon: false,
						pagePath: "/pages/index/index",
					},
				],
				current: 1
			}
		},
		onLoad() {

		},
		methods: {
			click1(e) {
				console.log('click1', e);
			},
			beforeSwitch(index) {
				// 只能切换偶数项
				return true;
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
